package com.p2p.front.dal.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;

import com.p2p.base.dao.BaseMapper;
import com.p2p.base.page.PageVo;
import com.p2p.front.dal.model.Withdraw;

/**
 * leiwen@yiqihao.com
 */
public interface WithdrawDao extends BaseMapper{

	List<Map<String,Object>> listPage(PageVo form);
	

	@Insert("insert into p2p_withdraw(uid,money,feeDraw,fee,sfee,score,name,bank,code,area,city,branch,card,addtime,uptime,addip,upip)"
			+ " values(#{uid},#{money.cent},#{feeDraw.cent},#{fee.cent},#{sfee.cent},#{score},#{name},#{bank},#{code},#{area},#{city},#{branch},#{card},#{addtime},#{uptime},#{addip},#{upip})")
	void save(Withdraw withdraw);
}
